package com.bookmngsys.service;

import com.bookmngsys.entity.Book;
import com.bookmngsys.entity.BookInfo;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

public interface BookInfoService {

    void addBookToBookInfo(String isbn, int nums,HttpSession httpSession) throws Exception;

    public List<BookInfo> getBooks();

    BookInfo getBookById(int bookid);

    List<BookInfo> getBooksByIsbn(String isbn);

    void deleteBookByBookId(int bookid);

    String generateBarcode(String isbn,int bookid, HttpSession httpSession) throws Exception;

    List<BookInfo> searchByReaderId(int readerId);

    List<BookInfo> searchLostBooks();

    List<BookInfo> searchDamageBooks();

    void setDamageBook(int id,int status) throws Exception;

    void setLostBook(int id,int status) throws Exception;

}
